﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Entities;
namespace WCF_ListenMusic.Services.Module_Musician.Public
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMusicianService" in both code and config file together.
    [ServiceContract]
    public interface IMusicianService
    {
        [OperationContract]
        List<Musician> getAllMusician();
        [OperationContract]
        Musician getMusician_byID(int musicianid);
        [OperationContract]
        int getMaxID_Musician();
        [OperationContract]
        Musician checkMusicianName(string name);
        [OperationContract]
        [TransactionFlow(TransactionFlowOption.Mandatory)]
        bool insertNewMusician(Musician musician);
    }
}
